package xuegao.study.mall.job.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xuegao.study.mall.common.model.job.SysJob;
import xuegao.study.mall.job.service.ISysJobService;
import xuegao.study.mall.repo.dao.job.SysJobDao;

import java.util.HashMap;
import java.util.List;

@Service
public class SysJobServiceImpl implements ISysJobService {

    @Autowired
    private SysJobDao sysJobDao;

    @Override
    public int getJobCount() {
        return sysJobDao.getJobCount();
    }

    @Override
    public List<SysJob> querySysJobList(HashMap<String, String> map) {
        return sysJobDao.querySysJobList(map);
    }

    @Override
    public int insertSelective(SysJob record) {
        return sysJobDao.insert(record);
        //return sysJobDao.insertSelective(record);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return sysJobDao.deleteByPrimaryKey(id);
    }

    @Override
    public SysJob selectByPrimaryKey(Long id) {
        return sysJobDao.selectByPrimaryKey(id);
    }

    @Override
    public SysJob selectByBean(SysJob bean) {
        return sysJobDao.selectByBean(bean);
    }

    @Override
    public int updateByPrimaryKeySelective(SysJob bean) {
        return sysJobDao.updateByPrimaryKeySelective(bean);
    }

}

